package Chapter04;
import java.util.Scanner;
public class Zuoye15 {
    //15.求一个正整数 倒转后加上1024的结果.比如 12345倒转后是54321,加上1024，结果是55345.
    public static void main(String[] args) {
        Scanner input =new Scanner(System.in);
        System.out.println("请输入一个正整数:");
        int num1=input.nextInt();
        int num2=0;
        for (;num1>0;num1/=10){
            num2=num2*10+num1%10;
            num1=num2/10;
        }
        System.out.println(num2+1024);
        }
}
